<template>
<a-config-provider :locale="locale === 'en' ? enUS : zhCN">
  <router-link to="/">Home</router-link>
  <router-link to="/about">About</router-link>
  <div>
    <router-view  />
  </div>

</a-config-provider>
</template>

<script lang="ts">
// const { ipcRenderer } = require("electron");
import { ipcRenderer } from 'electron'
import { defineComponent, Ref, ref } from 'vue'
import enUS from 'ant-design-vue/es/locale/en_US'
import zhCN from 'ant-design-vue/es/locale/zh_CN'
import 'moment/dist/locale/zh-cn'

export default defineComponent({
  name: 'App',
  components: {
  },
  setup () {
    const locale: Ref<string> = ref('zh') 
    return {
      locale,
      enUS,
      zhCN
    }
  }
})
</script>

<style>
</style>
